package com.kuang.demo.mapper;

import com.kuang.demo.bo.gh.CreateIssueBO;
import com.kuang.demo.bo.gh.UpdateIssueBO;
import com.kuang.demo.vo.CreateIssueVO;
import com.kuang.demo.vo.QueryIssueVO;
import com.kuang.demo.pojo.IssuePOJO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 郭浩 on 2020/11/3 8:57
 */
public interface IssueMapper {
    List<QueryIssueVO.ItemsBean> queryIssueList(@Param("question") String question, @Param("sort") String sort, @Param("order") String order);

    void updateIssueById(@Param("updateIssueBO") UpdateIssueBO updateIssueBO);

    IssuePOJO queryIssueById(@Param("id") int id);

    void deleteIssue(@Param("id") int id);

    void createIssue(@Param("createIssueBO") CreateIssueBO createIssueBO);

    CreateIssueVO queryIssueByIdWithoutDeleted(@Param("id") Integer id);
}
